<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/sys/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看通知</title>
<%@ include file="/WEB-INF/sys/include/css.jsp"%>
<style type="text/css">
.imgs{max-width:850px;}
.imgs img{width:200px;}
.attach p{margin:5px 0;}
.avs_box{display: flex;  flex-direction: column; align-items: center;}
.avs_title{font-size:24px;font-weight:600;}
.avs_time{font-size:18px;}
div.form div.group, div.form div.title{overflow:initial;}
.group {font-size:18px;}
.label{width:115px !important; font-weight: 600; box-sizing:border-box;}
.avs_fwb{width:800px;}
</style>
</head>
<body>
<form id="form" action="#" method="post">
<div class="form avs_box">
	<div class="title">查看通知</div>
	<div class="group">
		<div class="text avs_title">${notices.title }</div>
	</div>
	<div class="group">
		<div class="text avs_time">发布日期：<fmt:formatDate value="${notices.pubDate }" pattern="yyyy-MM-dd" />&nbsp;&nbsp;&nbsp;&nbsp;发布人：${notices.pubUser }</div>
	</div>
	<div class="group avs_fwb" style="overflow: visible;">
		<div class="item ">
			${notices.contents}
		</div>
	</div>
	
	<div style="margin-left:-30px">
	<c:if test="${not empty attachments}">
	<div class="group">
		<div class="label">附件:</div>
		<div class="item attach">
			<c:forEach items="${attachments }" var="attach">
			<p>
				<a href="${path }/cms/qxNotices/downloadAttach.do?id=${attach.id}" target="_blank">${attach.fileName }</a>
				<a href="${path }/cms/qxNotices/downloadAttach.do?id=${attach.id}" target="_blank">[下载]</a>
			</p>
			</c:forEach>
		</div>
	</div>
	</c:if>
	</div>
	<hr/>
	<div class="buttons" style="margin-bottom:50px;text-align:center;">
		<button type="button" id="cancel1">关闭</button>
	</div>
</div>
</form>
<%@ include file="/WEB-INF/sys/include/script.jsp" %>
<script type="text/javascript">
$(function() {
	$("#form").ligerForm({inputWidth: 300});
	
	$("#cancel1").click(function(){
		UiUtil.closeForm(true);
	});
});
</script>
</body>
</html>